#ifndef SGET_H_
#define SGET_H_
/*********************************************************/
class sMsg;

#include "sMsg.h"
#include <Poco/DOM/NodeIterator.h>
#include <string>
/*********************************************************/
class sGet : public sMsg
{
private:
	// Friend classes
	friend class sMsg;

	// Variables
	std::string		fFileName;				// Filename of the file data carried in the packet
	std::string		fHost;					// The host address

	// Methods
	void deserialize(Poco::XML::NodeIterator&);			// Deserializes a getjob

protected:
public:
	// Methods
	virtual std::string serialize() const;				// Serialize the job to an xml string
	virtual void execute();						// Execute the job

	// Data control methods
	void setFileName(const std::string& file);			// Set the filename
	std::string getFileName() const;				// Returns the filename
	void setHost(const std::string&);				// sets the host address
	std::string getHost() const;					// Returns the host address

	// Construction & Destruction
	sGet();
	~sGet();
};
/*********************************************************/
#endif // SGET_H_
